package com.krtech.wecard.module.pub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 卡信息与身份对应表
 */
@ApiModel(value = "com-krtech-wecard-module-pub-entity-CardIdentityRelationInfo")
@Data
@TableName(value = "pub_card_identity_relation_info")
public class CardIdentityRelationInfo implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATED_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 卡信息id
     */
    @TableField(value = "card_id")
    @ApiModelProperty(value = "卡信息id")
    private Integer cardId;

    /**
     * 身份id
     */
    @TableField(value = "identity_id")
    @ApiModelProperty(value = "身份id")
    private Integer identityId;

    /**
     * 身份code
     */
    @TableField(value = "identity_code")
    @ApiModelProperty(value = "身份code")
    private String identityCode;

    /**
     * 软删除
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(value = "软删除")
    private Integer delFlag;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_TIME = "CREATED_TIME";

    public static final String COL_CARD_ID = "card_id";

    public static final String COL_IDENTITY_ID = "identity_id";

    public static final String COL_IDENTITY_CODE = "identity_code";

    public static final String COL_DEL_FLAG = "del_flag";
}